define(function(require, exports, module) {
    var date = require('date');

    module.exports = function(obj) {
        require.async('rdmColor', function(getColor) {
            var titleArr = document.title.split(''),
                html = '';

            for (var i = 0; i < titleArr.length; i++) {
                html += titleArr[i] ?
                    '<span style="color:' + getColor() + '">' + titleArr[i] + '</span>' : titleArr[i];
            }

            obj.html(html + ' <small>(' + date() + ')</small>');
        });
    }
});